package com.atkusen.mini.minidanke;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@MapperScan("com.atkusen.mini.minidanke.dao")
@ComponentScan({"com.atkusen.mini.*"})//springboot 默认是扫描本项目下的配置信息，这里需要手动的添加
@EnableDiscoveryClient
@EnableFeignClients//启动远程掉用
public class MiniDankeApplication {

    public static void main(String[] args) {
        SpringApplication.run(MiniDankeApplication.class, args);
    }

}
